
<?php
$id = $_GET['id'];

include_once($_SERVER['CONTEXT_DOCUMENT_ROOT'].'/admin/public/header.php');
include_once($_SERVER['CONTEXT_DOCUMENT_ROOT'].'/public/func.php');
$config = include_once($_SERVER['CONTEXT_DOCUMENT_ROOT'].'/public/config.php');
$qal = sel($config,'notice','where id='.$id);

?>
<script type="text/javascript" charset="utf-8" src="/public/biadu/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="/public/biadu/ueditor.all.min.js"> </script>
<script type="text/javascript" charset="utf-8" src="/public/biadu/lang/zh-cn/zh-cn.js"></script>

<div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="/admin/index.php">首页</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="/admin/article/index.php">公告管理</a><span class="crumb-step">&gt;</span><span>修改公告</span></div>
        </div>
        <div class="result-wrap">
            <div class="result-content">
                <form action="xiugai.php" method="post" id="myform" name="myform" enctype="multipart/form-data">
                <input type="hidden" name="id" value=<?php echo $id; ?>>
                    <table class="insert-tab" width="100%">
                        <tbody>
                            <tr>
                                <th><i class="require-red">*</i>colid：</th>
                                <td>
                                    <input class="common-text required" id="title" name="title" size="50" value="<?php echo $qal[0]['colid'] ?>" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>标题：</th>
                                <td>
                                    <input class="common-text required" id="title" name="title" size="50" value="<?php echo $qal[0]['title'] ?>" type="text">
                                </td>
                            </tr>
                            
                            <tr>
                         <th>作者：</th>
                        <td><input class="common-text" name="author" size="50" value="<?php echo $qal[0]['author'] ?>" type="text"></td>
                         </tr> 
                            <!-- <tr>
                                <th>uid：</th>
                                <td><input class="common-text" name="id" size="50" value="<?php echo $qal[0]['id'] ?>" type="text"></td>
                            </tr> -->
                           
                            <tr>
                                <th>内容：</th>
                                <td>
                                <script id="editor" type="text/plain" style="width:600px;height:300px;" name="content"
                                    ><?php echo $qal[0]['content'] ?></script>
                                    <script type="text/javascript">
                                     var ue = UE.getEditor('editor',{
                                                            toolbar:
                                                            'emotion'
                                                        }); 
                                    </script>


                                </td>
                            </tr>
                            <tr>
                                <th></th>
                                <td>
                                    <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                                    <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                                </td>
                            </tr>
                        </tbody></table>
                </form>
            </div>
        </div>

    </div>
<?php
include_once($_SERVER['CONTEXT_DOCUMENT_ROOT'].'/admin/public/footer.php');
?>

